//
//  DYBaseLeftMenuPushVC.m
//  Run
//
//  Created by BetaTheta on 16/3/31.
//  Copyright © 2016年 BetaTheta. All rights reserved.
//

#import "DYBaseLeftMenuPushVC.h"

@interface DYBaseLeftMenuPushVC ()

@end

@implementation DYBaseLeftMenuPushVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    //导航栏
    [self navigationSet];
    
}
#pragma mark - 导航栏设置
- (void)navigationSet{
    
    /**< 半透明效果 */
    self.navigationController.navigationBar.translucent = NO;

    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[[UIImage imageNamed:@"主页标签"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] style:UIBarButtonItemStylePlain target:self action:@selector(presentLeftMenuViewController:)];
    
    self.navigationController.navigationBar.barTintColor = [UIColor blackColor];
    
    
    self.view.backgroundColor = [UIColor whiteColor];
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 100.0f, 40.0f)];//初始化图片视图控件
    
    imageView.contentMode = UIViewContentModeScaleAspectFit;//设置内容样式,通过保持长宽比缩放内容适应视图的大小,任何剩余的区域的视图的界限是透明的。
    
    UIImage *image = [UIImage imageNamed:@"导航栏图片"];//初始化图像视图
    
    
    [imageView setImage:image];
    self.navigationItem.titleView = imageView;//设置导航栏的titleView为imageView
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
